﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleFileManager.Manager
{
    public class PseudoFolder : FilePanelItem
    {
        public PseudoFolder(string name)
            : base(name,FilePanelItemType.PseudoFolder)
        {
        }

        public override long Size
        {
            get { return 0; }
        }

        public override DateTime LastAccessTime
        {
            get { return DateTime.MinValue; }
        }

        public override void Add(IFilePanelItem item)
        {
        }

        public override void Remove(IFilePanelItem item)
        {
        }

        public override void Copy(string path)
        {
        }

        public override void Create(string name)
        {
        }

        public override void Delete()
        {
        }

        public override void Move(string path)
        {
        }

        public override void MakeAction(SimpleFileManager.Manager.FileManager.FilePanel filePanel)
        {
            switch (Name)
            {
                case "My computer":
                    filePanel.OpenMyComputerFolder();
                    break;
                case "..":
                    filePanel.GoToParentFolder();
                    break;
            }
        
        }

        public override void Rename(string newName)
        {
        }
    }
}
